package yuan.deng.controller;

import org.junit.Test;
import yuan.deng.domain.User;
import yuan.deng.service.UserService;
import yuan.deng.service.impl.UserServiceImpl;

import java.util.List;

public class UserController {
    UserService userService=new UserServiceImpl();
   @Test
    public void addUser(){
        User user=new User(16,"zhangsan",23,"男",12423);
        int i = userService.addUser(user);
        System.out.println(i);
    }
    @Test
    public void delUser(){
        userService.delUser(13);
    }
    @Test
    public void findAll(){
        List<User> list = userService.findAll();
        System.out.println(list);
    }
}
